package com.zego.wawaji.ui.wawa.synth.gallery;

import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.zego.wawaji.R;
import com.zego.wawaji.base.module.ModuleMgr;
import com.zego.wawaji.ui.base.BaseAppCompatActivity;
import com.zego.wawaji.ui.bean.wawa.Wawa;

import java.util.List;

/**
 * 合成图鉴
 * Created by Su on 2018/3/4.
 */
public class SynthGalleryActivity extends BaseAppCompatActivity {
    private RecyclerView mRecyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.synth_gallery_act);
        init();
    }

    private void init() {
        setBackView();
        setTitle("合成图鉴");

        List<Wawa> wawaList = ModuleMgr.getWawaMgr().getWawaList().getBigWawaList();
        mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
        mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));
        mRecyclerView.setAdapter(new CardAdapter(wawaList));
    }
}
